<?php 
	$err = $this->err;
	$cat= $this->cat;
	//print_r($cat);
	//echo $cat['cat_name'];
	//echo $cat['cat_des'];die;
	//print_r($cat);die;
?>
<h1>Edit Category</h1>
<form name="frmEditCat" method="post" enctype="multipart/form-data">
		<div class="err"><?php echo $err; ?></div>
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td>Category name: </td>
			<td><input type="text" name="txtCatName" value="<?php echo $cat['cat_name']; ?>" /></td>
			
		</tr>
		<tr>
			<td>Description: </td>
			<td><textarea id="txtSortDes" name="txtCatDes" cols="60" rows="10"><?php echo $cat['cat_des']; ?></textarea></td>
		</tr>        
		<tr>
			<td>Image: </td>
			<td><input type="file" name="txtFile" value="Browser" /></td>
		</tr>
	</table>
	<div class="save-reset">
		<input type="submit" value="SAVE" />&nbsp;&nbsp;
		<input type="reset" value="Reset" />
	</div>
</form>